package com.zysf.library_boot.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zysf.library_boot.dto.PostsDto;
import com.zysf.library_boot.entity.Posts;
import com.zysf.library_boot.service.PostsService;
import com.zysf.library_boot.mapper.PostsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 31161
* @description 针对表【posts】的数据库操作Service实现
* @createDate 2024-12-31 10:34:21
*/
@Service
public class PostsServiceImpl extends ServiceImpl<PostsMapper, Posts>
    implements PostsService{

    @Autowired
    PostsMapper postsMapper;

    @Override
    public IPage<PostsDto> getCustomPosts(Page<PostsDto> page, String content) {
        return postsMapper.getCustomPosts(page, content);
    }
}




